<template>
  <div id="main">
    <div class="am-flexbox search-box am-flexbox-align-center">
      <div class="am-flexbox search am-flexbox-align-center">
        <div class="location">
          <span class="name">{{cname}}</span
          ><van-icon name="arrow-down" @click="$router.push('/city')" />
        </div>
        <div class="form">
          <i class="iconfont icon-seach"></i
          ><span class="text">请输入小区或地址</span>
        </div>
      </div>
      <van-icon name="guide-o" @click="$router.push('/map')"/>
    </div>
  </div>
</template>

<script>
export default {
  props: ['cname']
}
</script >

<style lang='less' scoped>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  text-align: center;
  background-color: #39a9ed;
}
.am-flexbox.am-flexbox-align-center {
  align-items: center;
}
.search-box {
  position: absolute;
  top: 3px;
  width: 80%;
  padding: 5px 40px;
  z-index: 2;
  height: 30px;
}
.am-flexbox.am-flexbox-align-center {
  align-items: center;
}
.search-box .search {
  flex: 1 1;
  height: 34px;
  margin: 0 10px;
  padding: 5px 5px 5px 8px;
  border-radius: 3px;
  background-color: #fff;
}
.am-flexbox {
  text-align: left;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.search-box .search .form {
  border-left: 1px solid #e5e5e5;
  margin-left: 12px;
  line-height: 16px;
}
#main {
  background-color: #f6f5f6;
}
.nav-grid {
  margin-top: -46px;
}
.rent-group {
  padding: 20px 5px;
}
.group {
  background-color: #f6f5f6;
  overflow: hidden;
  padding: 0 10px;
  .group-title {
    position: relative;
    margin: 15px 0 15px 10px;
    font-size: 15px;
    .more {
      color: #787d82;
      position: absolute;
      right: 0;
      font-size: 14px;
      font-weight: 400;
    }
  }
}
</style>
